/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.martinkrasa.site.entity;

import java.util.List;


/**
 *
 * @author martin.krasa
 */
public class Tournament {
    
    private String tournamentName;
    private final List<TournamentResult> list;

    public Tournament(String tournamentName, List<TournamentResult> list) {
        this.tournamentName = tournamentName;
        this.list = list;
    }

    /**
     * @return the tournamentName
     */
    public String getTournamentName() {
        return tournamentName;
    }

    /**
     * @param tournamentName the tournamentName to set
     */
    public void setTournamentName(String tournamentName) {
        this.tournamentName = tournamentName;
    }

    /**
     * @return the list
     */
    public List<TournamentResult> getList() {
        return list;
    }
    
    @Override
    public String toString() {
        return this.tournamentName;
    }
    
}
